home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3layer.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_R3LAYER_H = 1;
- include("real/layer/r3lislay.js")
-
-
- var R3CLID_LAYER = 63;
-
-
-
-
- // Description: Start new interactor.
-
- R3LAYM_NEWINTERACTOR = 63000;
-
- function mR3LAYM_NEWINTERACTOR() {
- DoA(this.r3obj, 63000, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Resume the previous interactor
-
- R3LAYM_PREVINTERACTOR = 63001;
-
- function mR3LAYM_PREVINTERACTOR() {
- DoA(this.r3obj, 63001, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Find object with given identifier.
- // Returns: Object, object if found, otherwise NULL.
- // p1: Integer, attribute id, such as R3TTA_UniqueID
- // p2: Integer, identifier
- // p3: Object, don't look from this object. Set to null for full scan.
-
- R3LAYM_FINDTAGCLOSE = 63009;
-
- function mR3LAYM_FINDTAGCLOSE(p1, p2, p3) {
- return R3ToJS( DoA3(this.r3obj, 63009, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0));
- }
-
- // Description: Purge materials
-
- R3LAYM_PURGEMATERIALS = 63010;
-
- function mR3LAYM_PURGEMATERIALS() {
- DoA(this.r3obj, 63010, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Purge a sub layer
- // p3: Object, sub layer
-
- R3LAYM_PURGE = 63023;
-
- function mR3LAYM_PURGE(p3) {
- DoA(this.r3obj, 63023, p3, R3TID_OBJECT, 0);
- }
-
- // Description: See if the project contains time sensitive objects.
- // Returns: Boolean, true if time sensitive objects found
-
- R3LAYM_ISTIMESENSITIVE = 63025;
-
- function mR3LAYM_ISTIMESENSITIVE() {
- return DoA(this.r3obj, 63025, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Jump to the next key.
- // Returns: Boolean, true if succeeded
- // p1: Integer, attribute id or 0 for any
- // p2: Integer, attribute index or -1 for regular attrs
- // p3: Integer, chor index or -1 for the current chor
-
- R3LAYM_NEXTKEY = 63026;
-
- function mR3LAYM_NEXTKEY(p1, p2, p3) {
- return DoA3(this.r3obj, 63026, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Jump to the previous key.
- // Returns: Boolean, true if succeeded
- // p1: Integer, attribute id or 0 for any
- // p2: Integer, attribute index or -1 for regular attrs
- // p3: Integer, chor index or -1 for the current chor
-
- R3LAYM_PREVKEY = 63027;
-
- function mR3LAYM_PREVKEY(p1, p2, p3) {
- return DoA3(this.r3obj, 63027, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Play the animation to the next key.
- // Returns: Boolean, true if succeeded
- // p1: Integer, attribute id or 0 for any
- // p2: Integer, attribute index or -1 for regular attrs
- // p3: Integer, chor index or -1 for the current chor
-
- R3LAYM_PLAYTONEXTKEY = 63028;
-
- function mR3LAYM_PLAYTONEXTKEY(p1, p2, p3) {
- return DoA3(this.r3obj, 63028, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Play the animation to the previous key.
- // Returns: Boolean, true if succeeded
- // p1: Integer, attribute id or 0 for any
- // p2: Integer, attribute index or -1 for regular attrs
- // p3: Integer, chor index or -1 for the current chor
-
- R3LAYM_PLAYTOPREVKEY = 63029;
-
- function mR3LAYM_PLAYTOPREVKEY(p1, p2, p3) {
- return DoA3(this.r3obj, 63029, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Fetch the layer corresponding to given type (enum r3layertype)
- // Returns: Object, current sub layer
- // p3: Integer, see enum r3layertype codes
-
- R3LAYM_GETCURRENTSUBLAYER = 63030;
-
- function mR3LAYM_GETCURRENTSUBLAYER(p3) {
- return R3ToJS( DoA(this.r3obj, 63030, p3, R3TID_INTEGER, 0));
- }
-
- // Description: Create a new key frame at current time for the currently selected objects * in
- // the current sub layer.
- // Returns: Boolean, true if succeeded
- // p1: Integer, attribute id
- // p3: Integer, attribute index or -1 for regular attrs
-
- R3LAYM_NEWKEY = 63031;
-
- function mR3LAYM_NEWKEY(p1, p3) {
- return DoA2(this.r3obj, 63031, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Move down in the choreography stack.
-
- R3LAYM_CHORDOWN = 63032;
-
- function mR3LAYM_CHORDOWN() {
- DoA(this.r3obj, 63032, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Move up in the choreography stack.
-
- R3LAYM_CHORUP = 63033;
-
- function mR3LAYM_CHORUP() {
- DoA(this.r3obj, 63033, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Enable/disable attribute for keyframing.
- // p1: Integer, attribute
- // p2: Integer, attribute index, or -1 of regular attribute
- // p3: Boolean, enable / disable
-
- R3LAYM_ENABLEATTRFORKEYFR = 63034;
-
- function mR3LAYM_ENABLEATTRFORKEYFR(p1, p2, p3) {
- DoA3(this.r3obj, 63034, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_BOOLEAN, 0);
- }
-
- // Description: Enable/disable all attributes in the selected objects in the current layer.
- // p3: Boolean, enable / disable
-
- R3LAYM_ENABLEALLFORKEYFR = 63035;
-
- function mR3LAYM_ENABLEALLFORKEYFR(p3) {
- DoA(this.r3obj, 63035, p3, R3TID_BOOLEAN, 0);
- }
-
- // Description: Fix the animated attribute set for the selected objects in the current layer.
- // p3: Boolean, true to fix
-
- R3LAYM_FIXATTRSFORKEYFR = 63036;
-
- function mR3LAYM_FIXATTRSFORKEYFR(p3) {
- DoA(this.r3obj, 63036, p3, R3TID_BOOLEAN, 0);
- }
-
- // Description: Remove unresolved references, such as keyframe input objects, taggedependants etc.
-
- R3LAYM_PURGEUNRESOLVEDREFS = 63037;
-
- function mR3LAYM_PURGEUNRESOLVEDREFS() {
- DoA(this.r3obj, 63037, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Delete selected key frames in the current sub layer.
- // Returns: Boolean, true if succeeded
-
- R3LAYM_DELSELECTEDKEYS = 63038;
-
- function mR3LAYM_DELSELECTEDKEYS() {
- return DoA(this.r3obj, 63038, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Delete the current choreography from the selected objects
-
- R3LAYM_DELCURRENTCHOR = 63039;
-
- function mR3LAYM_DELCURRENTCHOR() {
- DoA(this.r3obj, 63039, 0, R3TID_INTEGER, 0);
- }
-
-
-
-
- R3LAYA_Prims = 63500;
- function GetR3LAYA_Prims() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Prims, R3TID_OBJECT, 0));
- }
-
- R3LAYA_PrimModify = 63501;
- function GetR3LAYA_PrimModify() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_PrimModify, R3TID_OBJECT, 0));
- }
-
- R3LAYA_Materials = 63502;
- function GetR3LAYA_Materials() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Materials, R3TID_OBJECT, 0));
- }
-
- R3LAYA_Envelopes = 63503;
- function GetR3LAYA_Envelopes() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Envelopes, R3TID_OBJECT, 0));
- }
-
- R3LAYA_PostImageEffects = 63504;
- function GetR3LAYA_PostImageEffects() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_PostImageEffects, R3TID_OBJECT, 0));
- }
-
- R3LAYA_PostParticleEffects = 63505;
- function GetR3LAYA_PostParticleEffects() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_PostParticleEffects, R3TID_OBJECT, 0));
- }
-
- R3LAYA_Images = 63506;
- function SetR3LAYA_Images(value) {
- R3Set(this.r3obj, R3LAYA_Images, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_Images() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Images, R3TID_OBJECT, 0));
- }
-
- R3LAYA_Grids = 63507;
- function GetR3LAYA_Grids() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Grids, R3TID_OBJECT, 0));
- }
-
- R3LAYA_Animator = 63508;
- function SetR3LAYA_Animator(value) {
- R3Set(this.r3obj, R3LAYA_Animator, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_Animator() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Animator, R3TID_OBJECT, 0));
- }
-
- R3LAYA_ClipBoard = 63509;
- function SetR3LAYA_ClipBoard(value) {
- R3Set(this.r3obj, R3LAYA_ClipBoard, value, R3TID_OBJECT, 0);
- }
-
- R3LAYA_Interactor = 63510;
- function GetR3LAYA_Interactor() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Interactor, R3TID_OBJECT, 0));
- }
-
- R3LAYA_WireMaterialEvaluator = 63511;
- function GetR3LAYA_WireMaterialEvaluator() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_WireMaterialEvaluator, R3TID_OBJECT, 0));
- }
-
- R3LAYA_WireMaterialEvaluator = 63512;
- function GetR3LAYA_WireMaterialEvaluator() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_WireMaterialEvaluator, R3TID_OBJECT, 0));
- }
-
- R3LAYA_ProgressIndicator = 63513;
- function SetR3LAYA_ProgressIndicator(value) {
- R3Set(this.r3obj, R3LAYA_ProgressIndicator, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_ProgressIndicator() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_ProgressIndicator, R3TID_OBJECT, 0));
- }
-
- R3LAYA_Painter3D = 63514;
- function GetR3LAYA_Painter3D() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Painter3D, R3TID_OBJECT, 0));
- }
-
- R3LAYA_Painter2D = 63515;
- function GetR3LAYA_Painter2D() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Painter2D, R3TID_OBJECT, 0));
- }
-
- R3LAYA_AnimRecord = 63516;
- function GetR3LAYA_AnimRecord() {
- return R3Get(this.r3obj, R3LAYA_AnimRecord, R3TID_BOOLEAN, 0);
- }
-
- R3LAYA_Removable = 63517;
- function SetR3LAYA_Removable(value) {
- R3Set(this.r3obj, R3LAYA_Removable, value, R3TID_BOOLEAN, 0);
- }
-
- function GetR3LAYA_Removable() {
- return R3Get(this.r3obj, R3LAYA_Removable, R3TID_BOOLEAN, 0);
- }
-
- R3LAYA_UnitConverter = 63518;
- function SetR3LAYA_UnitConverter(value) {
- R3Set(this.r3obj, R3LAYA_UnitConverter, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_UnitConverter() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_UnitConverter, R3TID_OBJECT, 0));
- }
-
- R3LAYA_RewindObj = 63519;
- function SetR3LAYA_RewindObj(value) {
- R3Set(this.r3obj, R3LAYA_RewindObj, value, R3TID_OBJECT, 0);
- }
-
- R3LAYA_RewindMth = 63520;
- function SetR3LAYA_RewindMth(value) {
- R3Set(this.r3obj, R3LAYA_RewindMth, value, R3TID_INTEGER, R3TNF_ARRAY);
- }
-
- R3LAYA_UserChannels = 63522;
- function SetR3LAYA_UserChannels(value) {
- R3Set(this.r3obj, R3LAYA_UserChannels, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_UserChannels() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_UserChannels, R3TID_OBJECT, 0));
- }
-
- R3LAYA_Saved = 63523;
- function SetR3LAYA_Saved(value) {
- R3Set(this.r3obj, R3LAYA_Saved, value, R3TID_BOOLEAN, 0);
- }
-
- function GetR3LAYA_Saved() {
- return R3Get(this.r3obj, R3LAYA_Saved, R3TID_BOOLEAN, 0);
- }
-
- R3LAYA_Thumbnail = 63524;
- function SetR3LAYA_Thumbnail(value) {
- R3Set(this.r3obj, R3LAYA_Thumbnail, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_Thumbnail() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Thumbnail, R3TID_OBJECT, 0));
- }
-
- R3LAYA_AsyncExecutor = 63525;
- function SetR3LAYA_AsyncExecutor(value) {
- R3Set(this.r3obj, R3LAYA_AsyncExecutor, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_AsyncExecutor() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_AsyncExecutor, R3TID_OBJECT, 0));
- }
-
- R3LAYA_RenderSettings = 63526;
- function SetR3LAYA_RenderSettings(value) {
- R3Set(this.r3obj, R3LAYA_RenderSettings, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_RenderSettings() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_RenderSettings, R3TID_OBJECT, 0));
- }
-
- R3LAYA_ViewModels = 63527;
- function SetR3LAYA_ViewModels(value) {
- R3Set(this.r3obj, R3LAYA_ViewModels, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_ViewModels() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_ViewModels, R3TID_OBJECT, 0));
- }
-
- R3LAYA_UndoDepth = 63528;
- function SetR3LAYA_UndoDepth(value) {
- R3Set(this.r3obj, R3LAYA_UndoDepth, value, R3TID_INTEGER, 0);
- }
-
- R3LAYA_FileRenderers = 63529;
- function SetR3LAYA_FileRenderers(value) {
- R3Set(this.r3obj, R3LAYA_FileRenderers, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_FileRenderers() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_FileRenderers, R3TID_OBJECT, 0));
- }
-
- R3LAYA_Outputs = 63530;
- function SetR3LAYA_Outputs(value) {
- R3Set(this.r3obj, R3LAYA_Outputs, value, R3TID_OBJECT, 0);
- }
-
- function GetR3LAYA_Outputs() {
- return R3ToJS(R3Get(this.r3obj, R3LAYA_Outputs, R3TID_OBJECT, 0));
- }
-
- var R3LAYA_SelfDependent = 63532; // Boolean
- R3LAYA_CurrentType = 63533;
- function SetR3LAYA_CurrentType(value) {
- R3Set(this.r3obj, R3LAYA_CurrentType, value, R3TID_INTEGER, 0);
- }
-
- function GetR3LAYA_CurrentType() {
- return R3Get(this.r3obj, R3LAYA_CurrentType, R3TID_INTEGER, 0);
- }
-
- var R3MTN_PRIMS = "R3CurrentPrims";
- var R3LAYALT_NONE = 0;
- var R3LAYALT_PRIMITIVES = 1;
- var R3LAYALT_MATERIALS = 2;
- var R3LAYALT_IMAGES = 3;
- var R3LAYALT_IMAGEEFFECTS = 4;
- var R3LAYALT_PARTICLEEFFECTS = 5;
-
-
- function r3Layer () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_LAYER, arguments);
- }
- // Methods
- this.NEWINTERACTOR=mR3LAYM_NEWINTERACTOR;
- this.PREVINTERACTOR=mR3LAYM_PREVINTERACTOR;
- this.FINDTAGCLOSE=mR3LAYM_FINDTAGCLOSE;
- this.PURGEMATERIALS=mR3LAYM_PURGEMATERIALS;
- this.PURGE=mR3LAYM_PURGE;
- this.ISTIMESENSITIVE=mR3LAYM_ISTIMESENSITIVE;
- this.NEXTKEY=mR3LAYM_NEXTKEY;
- this.PREVKEY=mR3LAYM_PREVKEY;
- this.PLAYTONEXTKEY=mR3LAYM_PLAYTONEXTKEY;
- this.PLAYTOPREVKEY=mR3LAYM_PLAYTOPREVKEY;
- this.GETCURRENTSUBLAYER=mR3LAYM_GETCURRENTSUBLAYER;
- this.NEWKEY=mR3LAYM_NEWKEY;
- this.CHORDOWN=mR3LAYM_CHORDOWN;
- this.CHORUP=mR3LAYM_CHORUP;
- this.ENABLEATTRFORKEYFR=mR3LAYM_ENABLEATTRFORKEYFR;
- this.ENABLEALLFORKEYFR=mR3LAYM_ENABLEALLFORKEYFR;
- this.FIXATTRSFORKEYFR=mR3LAYM_FIXATTRSFORKEYFR;
- this.PURGEUNRESOLVEDREFS=mR3LAYM_PURGEUNRESOLVEDREFS;
- this.DELSELECTEDKEYS=mR3LAYM_DELSELECTEDKEYS;
- this.DELCURRENTCHOR=mR3LAYM_DELCURRENTCHOR;
-
- // Attributes
- this.GetPrims=GetR3LAYA_Prims;
- this.GetPrimModify=GetR3LAYA_PrimModify;
- this.GetMaterials=GetR3LAYA_Materials;
- this.GetEnvelopes=GetR3LAYA_Envelopes;
- this.GetPostImageEffects=GetR3LAYA_PostImageEffects;
- this.GetPostParticleEffects=GetR3LAYA_PostParticleEffects;
- this.GetImages=GetR3LAYA_Images;
- this.SetImages=SetR3LAYA_Images;
- this.GetGrids=GetR3LAYA_Grids;
- this.GetAnimator=GetR3LAYA_Animator;
- this.SetAnimator=SetR3LAYA_Animator;
- this.SetClipBoard=SetR3LAYA_ClipBoard;
- this.GetInteractor=GetR3LAYA_Interactor;
- this.GetWireMaterialEvaluator=GetR3LAYA_WireMaterialEvaluator;
- this.GetWireMaterialEvaluator=GetR3LAYA_WireMaterialEvaluator;
- this.GetProgressIndicator=GetR3LAYA_ProgressIndicator;
- this.SetProgressIndicator=SetR3LAYA_ProgressIndicator;
- this.GetPainter3D=GetR3LAYA_Painter3D;
- this.GetPainter2D=GetR3LAYA_Painter2D;
- this.GetAnimRecord=GetR3LAYA_AnimRecord;
- this.GetRemovable=GetR3LAYA_Removable;
- this.SetRemovable=SetR3LAYA_Removable;
- this.GetUnitConverter=GetR3LAYA_UnitConverter;
- this.SetUnitConverter=SetR3LAYA_UnitConverter;
- this.SetRewindObj=SetR3LAYA_RewindObj;
- this.SetRewindMth=SetR3LAYA_RewindMth;
- this.GetUserChannels=GetR3LAYA_UserChannels;
- this.SetUserChannels=SetR3LAYA_UserChannels;
- this.GetSaved=GetR3LAYA_Saved;
- this.SetSaved=SetR3LAYA_Saved;
- this.GetThumbnail=GetR3LAYA_Thumbnail;
- this.SetThumbnail=SetR3LAYA_Thumbnail;
- this.GetAsyncExecutor=GetR3LAYA_AsyncExecutor;
- this.SetAsyncExecutor=SetR3LAYA_AsyncExecutor;
- this.GetRenderSettings=GetR3LAYA_RenderSettings;
- this.SetRenderSettings=SetR3LAYA_RenderSettings;
- this.GetViewModels=GetR3LAYA_ViewModels;
- this.SetViewModels=SetR3LAYA_ViewModels;
- this.SetUndoDepth=SetR3LAYA_UndoDepth;
- this.GetFileRenderers=GetR3LAYA_FileRenderers;
- this.SetFileRenderers=SetR3LAYA_FileRenderers;
- this.GetOutputs=GetR3LAYA_Outputs;
- this.SetOutputs=SetR3LAYA_Outputs;
- this.GetCurrentType=GetR3LAYA_CurrentType;
- this.SetCurrentType=SetR3LAYA_CurrentType;
- }
-
- r3Layer.prototype=new r3Listlayer;
- // r3layer.h_H